package com.lz.gamll.feign.ware;

import com.lz.gmall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author 郭运龙
 */
@FeignClient(value = "service-ware",url = "http://localhost:9001")
public interface WareFeignClient {

    @RequestMapping("hasStock")
    public ResponseEntity<String> hasStock(@RequestParam Map<String,String> hashMap);
}
